package com.cow.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * AI 返回结果
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AIResponse {
    private int code;
    private String answer;

    public static AIResponse success(String answer) {
        return new AIResponse(200, answer);
    }

    public static AIResponse error(String message) {
        return new AIResponse(500, message);
    }
}
